login

Configuration for Login/Logout resource.

Read/write properties

token<String>

Random token to identify session during logout.

new_password<String>

Password.
Maximum length = 128

username<String>

User Name that wants to login.
Maximum length = 128

confirm_new_password<String>

Password.
Maximum length = 128

two_factor_authentication_label<String>

Two-factor authentication label.
Maximum length = 128

permission<String>

Actions that this user is authorized to perform.
Minimum length = 1
Maximum length = 128

client_ip<String>

Login client IP.

session_creator<String>

session_creator.

sessionid<String>

Session ID would only be set if login was performed successfully.

challenge<String>

Challenge request for authentication.

ID<String>

ID of the User that wants to login in cloud.
Maximum length = 128

client_port<Integer>

Login Client port.
Maximum value =

Secret<String>

Secret.
Maximum length = 128

session_timeout<Integer>

Session Timeout in seconds, if no activity is performed for specified time then session will be expired.

challenge_response<String>

Challenge response for authentication.

auth_with_remote_pubkey<Integer>

Login request to specify if SSH authentication took place with remote public keys for this user, 1 for remotely managed pubkey else 0.

password<String>

Password.
Maximum length = 128

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

deleteadd

delete

URL:https://<MGMT-IP>/nitro/v2/config/login/

HTTPS Method:DELETE

Request Headers:

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value> }

add

URL:https://<MGMT-IP>/nitro/v2/config/login?onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

Request Payload:JSON

{"login": {
      "new_password":<String_value>,
      "username":<String_value>,
      "confirm_new_password":<String_value>,
      "password":<String_value>,
      "sessionid":<String_value>,
      "challenge":<String_value>,
      "session_creator":<String_value>,
      "token":<String_value>,
      "two_factor_authentication_label":<String_value>,
      "client_ip":<String_value>,
      "permission":<String_value>,
      "session_timeout":<Integer_value>,
      "challenge_response":<String_value>,
      "auth_with_remote_pubkey":<Integer_value>,
      "ID":<String_value>,
      "client_port":<Integer_value>,
      "Secret":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "login":[{
      "token":<String_value>,
      "new_password":<String_value>,
      "username":<String_value>,
      "confirm_new_password":<String_value>,
      "two_factor_authentication_label":<String_value>,
      "permission":<String_value>,
      "client_ip":<String_value>,
      "session_creator":<String_value>,
      "tenant_name":<String_value>,
      "challenge_token":<String_value>,
      "sessionid":<String_value>,
      "challenge":<String_value>,
      "cert_verified":<Boolean_value>,
      "ID":<String_value>,
      "client_port":<Integer_value>,
      "Secret":<String_value>,
      "force_change_password":<Boolean_value>,
      "session_timeout":<Integer_value>,
      "login_type":<String_value>,
      "challenge_response":<String_value>,
      "auth_with_remote_pubkey":<Integer_value>,
      "password":<String_value>}]}